import Vue from 'vue'
import Router from 'vue-router'
//首页
import index from '../view/index/index'
//登录页
import login from '../view/login/login'
//身份验证
import authentication from '../view/authentication/authentication'
//审核成功
import auditSucc from '../view/auditSucc/auditSucc'
//没有贷款
import noLoans from '../view/noLoans/noLoans'
//线下还款
import offlinePayment from '../view/offlinePayment/offlinePayment'
//线下还款主体
import offLineMain from '../view/offLineMain/offLineMain'
//线上还款主体
import onlineMain from '../view/onLineMain/onLineMain'
//我要还款
import refund from '../view/refund/refund'
//个人信息
import personInfo from '../view/personInfo/personInfo'
//修改手机号
import modifyPhone from '../view/modifyPhone/modifyPhone'
//个人中心
import personCenter from '../view/personCenter/personCenter'
//审核进度
import auditProgress from '../view/auditProgress/auditProgress'
//上传证件
import uploadIdcard from '../view/uploadIdcard/uploadIdcard'
//绑定银行卡
import bindBank from '../view/bindBank/bindBank'
//贷款记录
import loanDocumentation from '../view/loanDocumentation/loanDocumentation'
//贷款详情
import loanDetail from '../view/loanDetail/loanDetail'
//退出
import logout from '../view/logout/logout'
//关于
import about from '../view/about/about'
//公司介绍
import companyIntroduction from '../view/companyIntroduction/companyIntroduction'
//联系客服
import customerService from '../view/customerService/customerService'
//意见反馈
import feedback from '../view/feedback/feedback'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      redirect:'index',
      component: index
    },
    {
      path: '/feedback',
      name: 'feedback',
      component: feedback
    },
    {
      path: '/customerService',
      name: 'customerService',
      component: customerService
    },
    {
      path: '/companyIntroduction',
      name: 'companyIntroduction',
      component: companyIntroduction
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
    {
      path: '/logout',
      name: 'logout',
      component: logout
    },
    {
      path: '/loanDetail',
      name: 'loanDetail',
      component: loanDetail
    },
    {
      path: '/loanDocumentation',
      name: 'loanDocumentation',
      component: loanDocumentation
    },
    {
      path: '/uploadIdcard',
      name: 'uploadIdcard',
      component: uploadIdcard
    },
    {
      path: '/bindBank',
      name: 'bindBank',
      component: bindBank
    },
    {
      path: '/auditProgress',
      name: 'auditProgress',
      component: auditProgress
    },
    {
      path: '/personCenter',
      name: 'personCenter',
      component: personCenter
    },
    {
      path: '/modifyPhone',
      name: 'modifyPhone',
      component: modifyPhone
    },
    {
      path: '/personInfo',
      name: 'personInfo',
      component: personInfo
    },
    {
      path: '/offLineMain',
      name: 'offLineMain',
      component: offLineMain
    },
    {
      path: '/refund',
      name: 'refund',
      component: refund
    },
    {
      path: '/onlineMain',
      name: 'onlineMain',
      component: onlineMain
    },
    {
      path: '/offlinePayment',
      name: 'offlinePayment',
      component: offlinePayment
    },
    {
      path: '/noLoans',
      name: 'noLoans',
      component: noLoans
    },
    {
      path: '/auditSucc',
      name: 'auditSucc',
      component: auditSucc
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path:'/login',
      name:'login',
      component:login
    },
    {
      path:'/authentication',
      name:'authentication',
      component:authentication
    },
  ]
})
